<template>
  <BasicModal
    v-bind="$attrs"
    width="520px"
    title="实习生实习信息"
    @ok="closeModal"
    @register="registerModal"
  >
    <Description @register="registerDesc" :column="1" />
  </BasicModal>
</template>
<script lang="ts" setup>
  import { ref } from "vue";
  import { BasicModal, useModalInner } from "/@/components/Modal";
  import { Description, useDescription } from "/@/components/Description";
  import { internshipDescSchema } from "/@/views/teacher/practical/member/member.data";

  const descData = ref({});

  const [registerModal, { closeModal }] = useModalInner((data) => {
    descData.value = data;
  });

  const [registerDesc] = useDescription({
    data: descData,
    schema: internshipDescSchema,
  });
</script>
